package ooday03;

public class SwimTest {
    public static void main(String[] args) {
       Dog d = new Dog("小黑",3,"黑色");
        d.eat();//Dog类重写之后的
        d.drink();//复用Animal类的
        d.swim();//Dog类重写之后
        d.LookHome();//Dog类所特有的

        Chick c = new Chick("小白",1,"白");
        c.eat();//Chick类重写之后
        c.drink();//复用Animal类的
        c.layEggs();//Chick类所特有的

        Fish f = new Fish("小金",1,"金");
        f.eat();//Fish类重写之后的
        f.drink();//复用Animal类的
        f.swim();//Fish类重写之后的
    }


}
